package com.kaifamiao.association.entity;

public class Citizen {

    private Integer id ;
    private String name ;

    // 维护 从 Citizen 到 IdentityCard 的 一对一 关联关系
    private IdentityCard idCard ; // 表示当前公民的省份证

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public IdentityCard getIdCard() {
        return idCard;
    }

    public void setIdCard(IdentityCard idCard) {
        this.idCard = idCard;
    }
}
